#include "StdAfx.h"
#include "SceneCameraManager.h"
#include "OgreLaunchApp.h"

CSceneCameraManager* CSceneCameraManager::m_pSelf = NULL ;

CSceneCameraManager::CSceneCameraManager(void):mCameraPtr(0)
{
}


CSceneCameraManager::~CSceneCameraManager(void)
{
}

void CSceneCameraManager::InitCamera() 
{
	mCameraPtr = COgreLaunchApp::getSingletonPtr()->getSceneManagerPtr()->createCamera( "mycamera" ) ;
	mCameraPtr->setAspectRatio( 1024.0f/768.0f ) ;
	mCameraPtr->setNearClipDistance( 5.0f ) ;
	mCameraPtr->setFarClipDistance( 0 ) ;
	mCameraPtr->setFOVy( Ogre::Radian(45.0f) ) ;
	mCameraPtr->setPosition( Ogre::Vector3(-9835.0f,1188.0f,2410.0f) ) ;
	mCameraPtr->lookAt( 0.0f,0.0f,0.0f ) ;
}
